
package app.controller.init
{
    import app.view.mediators.AddStateFormMediator;
    import app.view.mediators.ApplicationMediator;
    import app.view.mediators.FlareVizMediator;
    import app.view.mediators.MenuBarMediator;
    import app.view.mediators.OpenFormMediator;
    import app.view.mediators.StateFormMediator;
    import app.view.mediators.TextFormMediator;
    
    import org.puremvc.as3.multicore.interfaces.INotification;
    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
    

    public class InitViewCmd extends SimpleCommand {
        
        override public function execute ( note:INotification ) : void
        {
           
			var application:ApplicationMediator;
			application = ApplicationMediator( note.getBody() );
			facade.registerMediator( new FlareVizMediator(application.view.visualisation) );
			facade.registerMediator( new AddStateFormMediator() );
			facade.registerMediator( new StateFormMediator( application.view.panelHolder ) );
			facade.registerMediator(new MenuBarMediator( application.view.menu ));
			
			facade.registerMediator(new OpenFormMediator( application.view ));
			facade.registerMediator(new TextFormMediator( application.view ));
			
				
        }
    }
}